package edu.sandau.app.basic.vo;

import io.swagger.v3.oas.annotations.media.Schema;

public class CreateUserRequest {
    
    @Schema(description = "用户名", required = true, example = "string", type = "string", maxLength = 50)
    private String username;
    
    @Schema(description = "昵称", required = false, example = "string", type = "string", maxLength = 50)
    private String nickname;
    
    @Schema(description = "邮箱", required = false, example = "string", type = "string", maxLength = 100)
    private String email;
    
    @Schema(description = "手机号", required = false, example = "string", type = "string", maxLength = 20)
    private String phonenumber;
    
    @Schema(description = "性别: 0=男, 1=女, 2=未知", required = false, example = "0", type = "string", allowableValues = {"0", "1", "2"}, maxLength = 1)
    private String sex;
    
    @Schema(description = "头像URL", required = false, example = "string", type = "string", maxLength = 255)
    private String avatar;
    
    @Schema(description = "密码", required = true, example = "string", type = "string", maxLength = 255)
    private String password;
    
    @Schema(description = "用户状态: 0=正常, 1=停用", required = false, example = "0", type = "string", allowableValues = {"0", "1"}, maxLength = 10)
    private String status;
    
    @Schema(description = "用户类型: 0=管理员, 1=普通用户", required = false, example = "0", type = "string", allowableValues = {"0", "1"}, maxLength = 10)
    private String userType;
    
    // 构造函数
    public CreateUserRequest() {}
    
    // Getter 和 Setter 方法
    public String getUsername() {
        return username;
    }
    
    public void setUsername(String username) {
        this.username = username;
    }
    
    public String getPassword() {
        return password;
    }
    
    public void setPassword(String password) {
        this.password = password;
    }
    
    public String getEmail() {
        return email;
    }
    
    public void setEmail(String email) {
        this.email = email;
    }
    
    public String getPhonenumber() {
        return phonenumber;
    }
    
    public void setPhonenumber(String phonenumber) {
        this.phonenumber = phonenumber;
    }
    
    public String getNickname() {
        return nickname;
    }
    
    public void setNickname(String nickname) {
        this.nickname = nickname;
    }
    
    public String getSex() {
        return sex;
    }
    
    public void setSex(String sex) {
        this.sex = sex;
    }
    
    public String getAvatar() {
        return avatar;
    }
    
    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }
    
    public String getStatus() {
        return status;
    }
    
    public void setStatus(String status) {
        this.status = status;
    }
    
    public String getUserType() {
        return userType;
    }
    
    public void setUserType(String userType) {
        this.userType = userType;
    }
}
